<!DOCTYPE>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>左固定右自适应</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .one {
            position: absolute;
            height: 100px;
            width: 300px;
            background-color: blue;
        }
        .two {
            height: 200px;
            margin-left: 300px;
            background-color: red;
        }
        /* .one {
            float: left;
            height: 100px;
            width: 300px;
            background-color: blue;
        }
        .two {
            overflow: hidden;
            height: 200px;
            background-color: red;
        } */
    </style>
</head>
<body>
    <div class="one"></div>
    <div class="two">第一种方法</div>


    
</body>
</html>